from datetime import datetime

def log_progress(message, logfile='./index_log.txt'):
    timestamp_format = '%Y-%h-%d-%H:%M:%S'
    now = datetime.now()
    timestamp = now.strftime(timestamp_format)
    with open(logfile, "a") as f:
        f.write(timestamp + ' : ' + message + '\n')
        print(timestamp + ' : ' + message + '\n')